create file rust

208

create file rust -

use std::fs::File;

fn main() -> std::io::Result<()> {
    let mut f = File::create("foo.txt")?;
    Ok(())
}

Comments

Submit
0 Comments